
var Game = require('Game');
cc.Class({
    extends: cc.Component,

    properties: {
        titleLab:cc.Label,
        gameDesc:cc.Label,
    },

   
    onLoad: function () {
       this.titleLab.string=Game.instance.LL.t('label.PlayingInstrution');
       let name='';
       let language=Game.instance.language
       let label=this.gameDesc;
       name='gameDesc_'+language

       
       cc.resources.load(name, function(err, txt) {
        if (err) {
            cc.error(err.message || err);
            return;
        }
        // 使用txt变量中的文本内容
        console.log(txt);
        label.string=txt;
        
    });
    
     },
   
   
});
